﻿using PetaPoco;
using System;
using System.ComponentModel.DataAnnotations;

namespace Cxuu.Models
{
    [TableName("cxuu_article_mark")]
    [PrimaryKey("Id", AutoIncrement = true)]
    public class ArticleMark
    {
        public int Id { get; set; }
        public int Aid { get; set; }
        public int Uid { get; set; }
        public int Status { get; set; }
        public string AdoptAppraise { get; set; }
        public string Remark { get; set; }
        public DateTime GreatTime { get; set; }= DateTime.Now;

    }

    public class EditArticleMark
    {
        public int Id { get; set; }
        [Display(Name = "文件Id")]
        public int Aid { get; set; }
        [Display(Name = "标记用户")]
        public int Uid { get; set; }
        [Display(Name = "标记状态")]
        public int Status { get; set; }
        [Display(Name = "标记标识")]
        [Required(ErrorMessage = "请输入{0}")]
        public string AdoptAppraise { get; set; }
        [Display(Name = "标记备注")]
        public string Remark { get; set; }
        public DateTime GreatTime { get; set; }

    }

    public class ViewArticleMark
    {
        public int Id { get; set; }
        public int Aid { get; set; }
        public int Uid { get; set; }
        public int Status { get; set; }
        [Display(Name = "采用备注")]
        public string AdoptAppraise { get; set; }
        [Display(Name = "标记备注")]
        public string Remark { get; set; }
        public DateTime GreatTime { get; set; }
        public string Title { get; set; }
        public string Nickname { get; set; }
        public string MarkName { get; set; }
        public DateTime InsertTime { get; set; }
    }


}
